#include "stdio.h"

long long fact(int n)
{
	if (n == 1) return 1;
	return n*fact(n-1);
}
int main()
{
	int n;
	printf("%s", "Enter a number:\n");
	scanf("%d", &n);
	printf("%lld", fact(n));
	return 0;
}